// 导入用户类型
import { UserType } from "../types";
import request from "../utils/request";

export function login(data: UserType) {
  // 返回结果
  return request.post("/api/login", data)
}
// 获取用户的菜单
export function getUserMenu(){
  return request.get("/api/yp/user_permission")
}